<?php
$node_id = $this->get_data('node_id');
$url_segment = $this->get_data('url_segment');
$node_nav = m('node')->get_node_nav($node_id);

$gallery_id = $this->get_data('parent_id');


$images = $this->get_data('images');
$main_images = isset($images['main']) ? $images['main'] : array();
$htu_images = isset($images['htu']) ? $images['htu'] : array();


?>
<div id="left_bar">
<?php m('rdf')->block_menu_product_galleries($gallery_id)->display();?>
</div>
<div id="main_bar">
<div style="margin: 36px;">
<div id="nav">
    <?php m('node')->block_node_nav($node_id)->display();?>
</div>
<div>
<div id="product">
    <table>
        <tbody><tr>
            <td width="300" valign="top" align="center" id="img-main-holder">
               <?php foreach ($main_images as $m_image): ?>
                <span class="img_c">
                <?php echo tos_img($m_image['src']);?>
                </span>
               <?php endforeach;?>
            </td>
            <td valign="top" align="left">
                <table>
                    <tbody><tr><td height="30"><h1><?php $this->write('caption');?></h1></td></tr>
                    <tr><td valign="top" align="left">
                    <div class="desc">
                    <?php $this->write('content');?></div>
                    </td></tr>
                    <tr>
                        <td height="120px">
                        <?php foreach ($htu_images as $m_image): ?>
                <span class="img_c">
                <?php echo tos_img($m_image['src']);?>
                </span>
               <?php endforeach;?>                        </td>
                    </tr>
                </tbody></table>
            </td>
        </tr>
    </tbody></table>


</div>
</div>
</div>
</div>    <div class="clear"></div>